class Group < ActiveRecord::Base
  validates_presence_of :name
  validates_length_of :name, :in => 1..50, :too_short => "is a bit too short. At least 1 character please.",
      :too_long => "should be under %d characters"
  belongs_to :user
  has_many :images, :dependent => :destroy
  has_many :users
end
